Algorithm Visualizer - Depth-First Search

A lightweight, no-build-tools algorithm visualizer that showcases engineering skills without complexity.

8
1x
Step 0 / 0
Nodes Visited 0
Stack Size 0

Algorithm Information

Name: Depth-First Search (DFS)
Description: A graph traversal algorithm that explores as far as possible along each branch before backtracking. It uses a stack (or recursion) to keep track of vertices to visit.
Time Complexity: O(V + E) where V is vertices and E is edges
Space Complexity: O(V) in worst case for recursion stack
Use Cases: Topological sorting, cycle detection, maze solving, web crawling
Traversal Order: Pre-order (root, left, right) for trees

How to Use

Watch how DFS explores the graph by going deep into each branch before backtracking!

← Back to Portfolio